package com.ruoyi.purchase.mapper;

import java.util.List;
import com.ruoyi.purchase.domain.PurchaseOrderDetail;

/**
 * 采购订单详情Mapper接口
 * 
 * @author wonderland
 * @date 2023-07-17
 */
public interface PurchaseOrderDetailMapper 
{
    /**
     * 查询采购订单详情
     * 
     * @param id 采购订单详情主键
     * @return 采购订单详情
     */
    public PurchaseOrderDetail selectPurchaseOrderDetailById(Long id);

    /**
     * 查询采购订单详情列表
     * 
     * @param purchaseOrderDetail 采购订单详情
     * @return 采购订单详情集合
     */
    public List<PurchaseOrderDetail> selectPurchaseOrderDetailList(PurchaseOrderDetail purchaseOrderDetail);

    /**
     * 新增采购订单详情
     * 
     * @param purchaseOrderDetail 采购订单详情
     * @return 结果
     */
    public int insertPurchaseOrderDetail(PurchaseOrderDetail purchaseOrderDetail);

    /**
     * 修改采购订单详情
     * 
     * @param purchaseOrderDetail 采购订单详情
     * @return 结果
     */
    public int updatePurchaseOrderDetail(PurchaseOrderDetail purchaseOrderDetail);

    /**
     * 删除采购订单详情
     * 
     * @param id 采购订单详情主键
     * @return 结果
     */
    public int deletePurchaseOrderDetailById(Long id);

    /**
     * 批量删除采购订单详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deletePurchaseOrderDetailByIds(Long[] ids);

    List<PurchaseOrderDetail> getOrderDetailsByOrderId(Long orderId);
}
